package uba.fi.tda.tp1.utils;

import java.util.Random;

public class NumbersBuilder {
	private static final Integer MAX_VALUE = 1000;
	private int[] numbers;
	
	/**
	 * Creacion de numeros aleatorios para simular trabajo
	 * @param N Cantidad de elementos que se desea crear 
	 */
	public NumbersBuilder(int N){
		numbers = new int[N];
		Random random = new Random(System.currentTimeMillis());
		
		for (int i=0; i<N; i++){
			//numero random con signo
			int sign = random.nextInt(2)==0?-1:1;
			//sign = 1;
			numbers[i] = sign * random.nextInt(MAX_VALUE);
		}
	}
		
	public int[] getNumbers(){
		return numbers.clone();
	}
}
